import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false
Vue.filter('filterPrice', value => value.toFixed(2))
Vue.filter('filterTime',(time)=>{
  let d = new Date(time);
  let year = d.getFullYear()
  let month= (d.getMonth()+1+'').padStart(2,'0')
  let date = (d.getDate()+'').padStart(2,'0')
   let hours = (d.getHours()+'').padStart(2,'0')
   let minutes = (d.getMinutes()+ '').padStart(2,'0')
   let seconds = (d.getSeconds()+'').padStart(2,'0')   
  return `${year}-${month}-${date} ${hours}:${minutes}:${seconds}`
})
new Vue({
  el:'#app',
  render: h => h(App),
})
